From 3f5c613287e79b44d4e4b10e0193581b7442249a Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Thu, 6 Mar 2014 12:23:25 +0100 Subject: [PATCH] tmem: drop a gross goto usage No need to do it that way. Signed-off-by: Konrad Rzeszutek Wilk --- xen/common/tmem.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index d9e912ba06..02e7e2eaff 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -2614,17 +2614,15 @@ long do_tmem_op(tmem_cli_op_t uops) if ( client != NULL && client->domain->is_dying ) { - rc = -ENODEV; - simple_error: errored_tmem_ops++; - return rc; + return -ENODEV; } if ( unlikely(tmem_get_tmemop_from_client(&op, uops) != 0) ) { tmem_client_err("tmem: can't get tmem struct from %s\n", tmem_client_str); - rc = -EFAULT; - goto simple_error; + errored_tmem_ops++; + return -EFAULT; } if ( op.cmd == TMEM_CONTROL ) -- 2.30.2